<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %> 
<% 
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	request.setAttribute("base", basePath);
%>
<!DOCTYPE html>
<html lang="en">
<head>
	<!--
		Charisma v1.0.0

		Copyright 2012 Muhammad Usman
		Licensed under the Apache License v2.0
		http://www.apache.org/licenses/LICENSE-2.0

		http://usman.it
		http://twitter.com/halalit_usman
	-->
	<meta charset="utf-8">
	<title>Free HTML5 Bootstrap Admin Template</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">

	<!-- The styles -->
	<link id="bs-css" href="<%=basePath%>css/one/bootstrap-cerulean.css" rel="stylesheet">
	<style type="text/css">
	  body {
		padding-bottom: 40px;
	  }
	  .sidebar-nav {
		padding: 9px 0;
	  }
	</style>
	<link href="<%=basePath%>css/one/bootstrap-responsive.css" rel="stylesheet">
	<link href="<%=basePath%>css/one/charisma-app.css" rel="stylesheet">
	<link href="<%=basePath%>css/one/jquery-ui-1.8.21.custom.css" rel="stylesheet">
	<link href='<%=basePath%>css/one/fullcalendar.css' rel='stylesheet'>
	<link href='<%=basePath%>css/one/fullcalendar.print.css' rel='stylesheet'  media='print'>
	<link href='<%=basePath%>css/one/chosen.css' rel='stylesheet'>
	<link href='<%=basePath%>css/one/uniform.default.css' rel='stylesheet'>
	<link href='<%=basePath%>css/one/colorbox.css' rel='stylesheet'>
	<link href='<%=basePath%>css/one/jquery.cleditor.css' rel='stylesheet'>
	<link href='<%=basePath%>css/one/jquery.noty.css' rel='stylesheet'>
	<link href='<%=basePath%>css/one/noty_theme_default.css' rel='stylesheet'>
	<link href='<%=basePath%>css/one/elfinder.min.css' rel='stylesheet'>
	<link href='<%=basePath%>css/one/elfinder.theme.css' rel='stylesheet'>
	<link href='<%=basePath%>css/one/jquery.iphone.toggle.css' rel='stylesheet'>
	<link href='<%=basePath%>css/one/opa-icons.css' rel='stylesheet'>
	<link href='<%=basePath%>css/one/uploadify.css' rel='stylesheet'>


	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

	<!-- The fav icon -->
	<link rel="shortcut icon" href="img/favicon.ico">
</head>
	<!-- external javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->

	<!-- jQuery -->
	<script src="<%=basePath%>js/one/jquery-1.7.2.min.js"></script>
	<!-- jQuery UI -->
	<script src="<%=basePath%>js/one/jquery-ui-1.8.21.custom.min.js"></script>
	<!-- transition / effect library -->
	<script src="<%=basePath%>js/one/bootstrap-transition.js"></script>
	<!-- alert enhancer library -->
	<script src="<%=basePath%>js/one/bootstrap-alert.js"></script>
	<!-- modal / dialog library -->
	<script src="<%=basePath%>js/one/bootstrap-modal.js"></script>
	<!-- custom dropdown library -->
	<script src="<%=basePath%>js/one/bootstrap-dropdown.js"></script>
	<!-- scrolspy library -->
	<script src="<%=basePath%>js/one/bootstrap-scrollspy.js"></script>
	<!-- library for creating tabs -->
	<script src="<%=basePath%>js/one/bootstrap-tab.js"></script>
	<!-- library for advanced tooltip -->
	<script src="<%=basePath%>js/one/bootstrap-tooltip.js"></script>
	<!-- popover effect library -->
	<script src="<%=basePath%>js/one/bootstrap-popover.js"></script>
	<!-- button enhancer library -->
	<script src="<%=basePath%>js/one/bootstrap-button.js"></script>
	<!-- accordion library (optional, not used in demo) -->
	<script src="<%=basePath%>js/one/bootstrap-collapse.js"></script>
	<!-- carousel slideshow library (optional, not used in demo) -->
	<script src="<%=basePath%>js/one/bootstrap-carousel.js"></script>
	<!-- autocomplete library -->
	<script src="<%=basePath%>js/one/bootstrap-typeahead.js"></script>
	<!-- tour library -->
	<script src="<%=basePath%>js/one/bootstrap-tour.js"></script>
	<!-- library for cookie management -->
	<script src="<%=basePath%>js/one/jquery.cookie.js"></script>
	<!-- calander plugin -->
	<script src='<%=basePath%>js/one/fullcalendar.min.js'></script>
	<!-- data table plugin -->
	<script src='<%=basePath%>js/one/jquery.dataTables.min.js'></script>

	<!-- chart libraries start -->
	<script src="<%=basePath%>js/one/excanvas.js"></script>
	<script src="<%=basePath%>js/one/jquery.flot.min.js"></script>
	<script src="<%=basePath%>js/one/jquery.flot.pie.min.js"></script>
	<script src="<%=basePath%>js/one/jquery.flot.stack.js"></script>
	<script src="<%=basePath%>js/one/jquery.flot.resize.min.js"></script>
	<!-- chart libraries end -->

	<!-- select or dropdown enhancer -->
	<script src="<%=basePath%>js/one/jquery.chosen.min.js"></script>
	<!-- checkbox, radio, and file input styler -->
	<script src="<%=basePath%>js/one/jquery.uniform.min.js"></script>
	<!-- plugin for gallery image view -->
	<script src="<%=basePath%>js/one/jquery.colorbox.min.js"></script>
	<!-- rich text editor library -->
	<script src="<%=basePath%>js/one/jquery.cleditor.min.js"></script>
	<!-- notification plugin -->
	<script src="<%=basePath%>js/one/jquery.noty.js"></script>
	<!-- file manager library -->
	<script src="<%=basePath%>js/one/jquery.elfinder.min.js"></script>
	<!-- star rating plugin -->
	<script src="<%=basePath%>js/one/jquery.raty.min.js"></script>
	<!-- for iOS style toggle switch -->
	<script src="<%=basePath%>js/one/jquery.iphone.toggle.js"></script>
	<!-- autogrowing textarea plugin -->
	<script src="<%=basePath%>js/one/jquery.autogrow-textarea.js"></script>
	<!-- multiple file upload plugin -->
	<script src="<%=basePath%>js/one/jquery.uploadify-3.1.min.js"></script>
	<!-- history.js for cross-browser state change on ajax -->
	<script src="<%=basePath%>js/one/jquery.history.js"></script>
	<!-- application script for Charisma demo -->
	<script src="< %=basePath%>js/one/charisma.js"></script>
	<script src="<%=basePath%>js/jQueryUtil.js"></script>
	<script>
	 	// 我的店铺
		function _allAllowMyShop() {
			window.location.href="${base }shop_allAllowMyShop/${user.id}";
		}
		// 店铺注册
		function _applyShop() {
			window.location.href="${base }shop_applyShop";
		}
		// 我已经申请的商家 myShop.jsp
		function _myShop(){
			window.location.href="${base }jsp/front/one/shop/myShop.jsp";
		}
		//我的订单
		function _foodReserve() {
			window.location.href = "${base }shop_myOrderList";
		}
		//首页
		function _index() {
			window.location.href = "${base}user_frontIndex";
		}
		// 用户退出 
		function _logout() {
			window.location.href = "${base }/user_logout";
		}
	</script>
<body>	
	<!-- topbar starts -->
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				<a class="brand" href="index.html"> <img alt="Charisma Logo" src="<%=basePath%>jsp/front/img/logo20.png" /> <span>Charisma</span></a>
				
				<!-- user dropdown starts -->
				<div class="btn-group pull-right" >
					<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
						<i class="icon-user"></i><span class="hidden-phone">管理</span>
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						<li><a href="#">前端</a></li>
						<li class="divider"></li>
						<li><a href="${base}user_my">后端</a></li>
						<li><a href="javascript:_logout();">退出</a></li>
					</ul>
				</div>
				<!-- user dropdown ends -->
				
				<div class="top-nav nav-collapse">
					<ul class="nav">
						<li><a href="#">Visit Site</a></li>
						<li>
							<form class="navbar-search pull-left">
								<input placeholder="Search" class="search-query span2" name="query" type="text">
							</form>
						</li>
					</ul>
				</div><!--/.nav-collapse -->
			</div>
		</div>
	</div>
	
		<!-- topbar ends -->
		<div class="container-fluid">
			<div class="row-fluid">
				<!-- left menu starts -->
					<div class="span2 main-menu-span">
						<div class="well nav-collapse sidebar-nav">
							<ul class="nav nav-tabs nav-stacked main-menu">
								<li class="nav-header hidden-tablet">${user.name }</li>
								<li><a href="javascript:_index();"><i class="icon-home"></i><span class="hidden-tablet"> 	&nbsp;&nbsp;首&nbsp;&nbsp;&nbsp;&nbsp;页</span></a></li>
								<li><a href="javascript:_foodReserve();"><i class="icon-home"></i><span class="hidden-tablet"> 	我的订单</span></a></li>
								<li><a href="javascript:_myShop();"><i class="icon-home"></i><span class="hidden-tablet"> 	我的商家</span></a></li>
								<li><a href="javascript:_applyShop();"><i class="icon-home"></i><span class="hidden-tablet"> 	店铺注册</span></a></li>
								<li><a href="javascript:_allAllowMyShop();"><i class="icon-home"></i><span class="hidden-tablet"> 我的店铺</span></a></li>
							</ul>
						</div><!--/.well -->
					</div><!--/span-->
				<!-- left menu ends -->
		